<%= content_for :title, '回收站 - 文章' %>

<ul class="app-post-list app-post-trash">
  <% @posts.each do |post| %>
      <li class="uk-panel" id="post-<%= post.id %>">
        <div data-no-turbolink>
          <%= content_tag :span, post.title, class: 'title' %>
        </div>
        <div class="sub-info">
            <span>删除日期：<%= post.deleted_time %></span>
        </div>
        <div class="operation">
          <%= link_to '', restore_admin_post_path(post), class: 'uk-icon-button uk-icon-share', method: :patch, remote: true %>
          <%= link_to '', admin_post_path(post), class: 'uk-icon-button uk-icon-times', method: :delete, remote: true, data: {confirm: '是否删除？！'} %>
        </div>
      </li>
  <% end %>
</ul>